package com.hexiaohe.springboot_vue_app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hexiaohe.springboot_vue_app.entity.UserRole;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

public interface UserRoleMapper extends BaseMapper<UserRole> {
    public int UpdateUserRole(UserRole userRole);
    @Select("select * from user_role where user_id=#{userId}")
    public UserRole selectRoleByUserId(int userId);
    @Delete("delete from user_role where user_id =#{userId}")
    public int deleteUserById(int userId);
}
